
<article class="module width_3_quarter">
  <header>
    <h3 class="tabs_involved"><a href="order_list">订单列表</a> 共({{$pagers.count}})</h3>
   
     
      <ul class=" tabs">
      <li><a onclick='Main.popupBox("admins.php?act=mail_tpl&no_style=1")'>邮件模板</a></li>
      <li>
        <select onchange="location.href='admins.php?act=batch_discount&sta='+this.value">
          <option value="">筛选</option>
          <option value="pay_status*2" {{if $sta=='pay_status*2'}}selected="true"{{/if}}>已支付</option>
          <option value="pay_status*0" {{if $sta=='pay_status*0'}}selected="true"{{/if}}>未支付</option>
        
        </select>
        </li>
        <li>搜索：<input type="text"  name="kw" style="width:auto" value="单号/收货人/email/地址" onclick="if(this.value=='单号/收货人/email/地址') this.value=''"/> <input type="button" class="alt_btn" value="GO" onclick="AD.ordrSearch('batch_discount')"/></li>
      </ul>
    
  </header>
  <div class="tab_container">
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
            <th></th>
            <th width="140px">单号</th>
           
            <th width="200px">邮箱</th>
            <th width="200px">费用</th>
            <th width="80px">优惠码</th>
            <th width="80px">优惠金额</th>
            <th>支付</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        
        {{foreach from=$order_list item=list key=key}}
        <tr class="c_tr idx_{{$key}}">
          <td><input type="checkbox"></td>
          <td>
          {{$list.order_sn}}
          </td>
          
          <td>{{$list.address.address.email}}</td>
          <td>{{$list.goods_amount}}+{{$list.shipping_fee}}-<b class="green">{{$list.discount}}</b> = <b class="red">{{$list.order_amount}}</b></td>
           <td>{{$list.code.code}}</td>
           <td>{{$list.code.value}}</td>
          <td>{{if $list.pay_status==2}}<b class="green">已支付</b>{else}未支付{{/if}}</td>
          <td><a href="print_order-{{$list.order_id}}" target="_blank">发送</a></td>
        </tr>
        <!-- <tr class="c_tr idx_{{$key}}">
        	<td>其他</td>
            <td colspan="7">IP:{{$list.ip}} , OS : {{$list.os}}  时间 : {{$list.add_time}}</td>
        </tr>-->
        {{/foreach}}
          </tbody>
        
      </table>
    </div>
  </div>
  <!-- end of .tab_container --> 
  
</article>
{{include file="../../pages.htm"}}